package com.smartleanx.module.hrm.service.payroll.bo;

import com.smartleanx.framework.common.validation.InEnum;
import com.smartleanx.module.system.enums.customfield.CustomFieldLabelEnum;
import com.smartleanx.module.system.enums.customfield.CustomFieldLabelGroupEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class PayrollDetailFieldSaveBO {
    /**
     * 标签页
     */
    @InEnum(value = CustomFieldLabelEnum.class, message = "标签页格式非法")
    Integer label;
    /**
     * 标签分组
     */
    @InEnum(value = CustomFieldLabelGroupEnum.class, message = "标签分组格式非法")
    Integer labelGroup;
    /**
     * 字段ID
     */
    @NotNull(message = "字段ID不能为空")
    private Long fieldId;
    /**
     * 字段英文标识
     */
    @NotEmpty(message = "英文标识不能为空")
    private String colName;
    /**
     * 字段名称
     */
    private String fieldName;
    /**
     * 字段值
     */
    private String fieldValue;
    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空")
    private Long recordId;
}
